package com.work.saturn.account;

import android.os.Bundle;
import android.widget.TextView;

import com.immo.libcommon.base.BaseHeadActivity;
import com.work.saturn.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class AccountDetailActivity extends BaseHeadActivity {
    @BindView(R.id.account_detail_total)
    TextView accountDetailTotal;
    @BindView(R.id.account_detail_to)
    TextView accountDetailTo;
    @BindView(R.id.account_detail_from)
    TextView accountDetailFrom;
    @BindView(R.id.account_detail_fee)
    TextView accountDetailFee;
    @BindView(R.id.account_detail_tips)
    TextView accountDetailTips;
    @BindView(R.id.account_detail_num)
    TextView accountDetailNum;
    @BindView(R.id.account_detail_time)
    TextView accountDetailTime;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_account_detail);
        ButterKnife.bind(this);
        setTitle("交易记录");
        initData();
    }

    private void initData() {
        accountDetailTotal.setText(getIntent().getStringExtra("count")+getIntent().getStringExtra("symbol"));
        accountDetailTo.setText(getIntent().getStringExtra("from"));
        accountDetailFrom.setText(getIntent().getStringExtra("to"));
        if (getIntent().getStringExtra("gas").length()==0){
            accountDetailFee.setText("0"+getIntent().getStringExtra("symbol"));
        }else {
            accountDetailFee.setText(getIntent().getStringExtra("gas")+getIntent().getStringExtra("symbol"));
        }
        accountDetailTips.setText(getIntent().getStringExtra("desc"));
        accountDetailNum.setText(getIntent().getStringExtra("num"));
        accountDetailTime.setText(getIntent().getStringExtra("time"));


    }


}
